
package com.qf.model;

import java.util.ArrayList;
import java.util.List;

public class TelBook {
	/*
	 * `tid` int(11) NOT NULL AUTO_INCREMENT,
  `tname` varchar(50) DEFAULT NULL,
  `uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`tid`)
	 */
	private  int tid;
	private String tname;
	private int  uid;
	private List<Contact> contacts=new ArrayList<>();
	public TelBook() {
		
		super();
		//TODO 
			
	}
	public TelBook(int tid, String tname, int uid, List<Contact> contacts) {
		super();
		this.tid = tid;
		this.tname = tname;
		this.uid = uid;
		this.contacts = contacts;
	}
	@Override
	public String toString() {
		return "TelBook [tid=" + tid + ", tname=" + tname + ", uid=" + uid + ", contacts=" + contacts + "]";
	}
	public int getTid() {
	
		return tid;
	}
	public void setTid(int tid) {
	
		this.tid = tid;
	}
	public String getTname() {
	
		return tname;
	}
	public void setTname(String tname) {
	
		this.tname = tname;
	}
	public int getUid() {
	
		return uid;
	}
	public void setUid(int uid) {
	
		this.uid = uid;
	}
	public List<Contact> getContacts() {
	
		return contacts;
	}
	public void setContacts(List<Contact> contacts) {
	
		this.contacts = contacts;
	}
	
}

	